﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Zsnd.Helpers {
    public class CustomController : Controller {
        protected const string errorMessage = "出错，请重试！";
        //using JsonNetResult, build with Newtonsoft.Json
        protected internal JsonNetResult Json2(object data) {
            return new JsonNetResult() { Formatting = Newtonsoft.Json.Formatting.None, Data = data };
        }
    }
}